# Maintainer: Ivy Foster <iff@archlinux.org>
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=libertinus-font
pkgver=7.040
pkgrel=2
pkgdesc='Fonts based on Linux Libertine/Biolinum, with extended math support'
url=https://github.com/alerque/libertinus
license=(custom:OFL)

provides=(otf-libertinus)
replaces=(otf-libertinus)

arch=(any)
source=("https://github.com/alerque/libertinus/releases/download/v$pkgver/Libertinus-$pkgver.tar.xz")
# Warning: checksums provided by packager, not upstream
sha256sums=('7fe9f022722d1c1cc67dc2c28a110b3bb55bae3575196160d2422c89333b3850')

package() {
	cd "Libertinus-$pkgver"
	install -d "$pkgdir/usr/share/fonts/libertinus"
	install -m644 -t "$pkgdir/usr/share/fonts/libertinus" static/OTF/*.otf
	install -Dm644 OFL.txt "$pkgdir/usr/share/licenses/libertinus-font/OFL.txt"
}
